﻿@using CommandLib
@using FindArtInfo.Models
@using Resources
@model FindArtInfo.Models.PageMonogramSearchResultModel
@{
    ViewBag.Title = "Search for monogram in www.findartinfo.com";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<table border="0" width="100%" id="table5" cellspacing="0" cellpadding="0">
    <tr>
        <td align="left" valign="top">
            <h1 class="underline">@Multi.PageMonogramSearchResultTitle1</h1>
            <p align="right" class="below"><a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/monogram-search.html">@Multi.PageMonogramSearchResultBack</a></p>
            <h2>@Html.Raw(string.Format(Multi.PageMonogramSearchResultTitle2, Model.KeyWord))</h2>
            @if(Model.ListMonogram.Count == 0)
            {
                <div align="center">@Html.Raw(string.Format(Multi.PageMonogramSearchResultNoMatchFound, Model.KeyWord))</div>
            }
            else
            {
                <h2>                    
                    @(string.Format(Multi.PageMonogramSearchResultMessage, Utils.FomatNumber(Model.TotalRecord.ToString()), Utils.FomatNumber(Model.PageIndex.ToString()), Utils.FomatNumber(Model.TotalPage.ToString()), Utils.FomatNumber(Model.PageSize.ToString())))
                </h2>
                <table border="0" id="table6" cellspacing="0" cellpadding="3">
                    <tr>
                        <td width=115><b>@Multi.PageMonogramSearchResultTblHeaderMonogramText&nbsp; |</b></td>
                        <td><b>@Multi.PageMonogramSearchResultTblHeaderArtist</b></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>                
                    @foreach (var item in Model.ListMonogram)
                    {

                        <tr>
                            <td>@item.Monogram_Text</td>
                            <td>
                                <span class='linkgoogle'>                                                                        
                                    <a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/list-prices-by-artist/@item.ArtistsID/@(Utils.UnicodeToKoDauAndGach(item.FullName)).html">@HttpUtility.HtmlDecode(item.FullName)</a>
                                </span>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>                            
                        </tr>
                    }
                    <tr align="left" height="35px">
                        <td colspan="4">
                            @Html.Partial("_PartialPaging", new PartialPagingModel { PageIndex = Model.PageIndex, PageSize = Model.PageSize, TotalPage = Model.TotalPage, TotalRecord = Model.TotalRecord, Url = Model.Url })
                        </td>
                    </tr>                
                </table>
            }
            <p align="right" class="below">                
                <a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/monogram-search.html">@Multi.PageMonogramSearchResultBack</a>
            </p>
        </td>
    </tr>
    <tr><td align="left" valign="top">&nbsp;</td></tr>
</table>
